-- special
-- create by zhuangsl
-- 道具：  附加特殊状态

return {
    apply = function(source, target, classId, value)
        -- 一组属性
        local round = CombatM.getRound();
        if type(value[1]) == "table" then
            for _, prop in pairs(value) do
                if prop[4] ~= -1 then
                    prop[4] = prop[4] + round + 1;
                end

                PropM.record(target, prop, "special");

                -- 抛出事件
                EventMgr.fire(event.ADD_BUFF, { ["target"] = target, ["prop"] = prop, });
            end
        else
            -- 单条属性
            if value[4] ~= -1 then
                value[4] = value[4] + round + 1;
            end

            PropM.record(target, value, "special");

            -- 抛出事件
            EventMgr.fire(event.ADD_BUFF, { ["target"] = target, ["prop"] = value, });
        end
    end,
};
